package com.nageoffer.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.admin.dao.entity.Group;
import com.nageoffer.shortlink.common.dto.admin.req.GroupCreateReqDTO;
import com.nageoffer.shortlink.common.dto.admin.req.GroupSortReqDTO;
import com.nageoffer.shortlink.common.dto.admin.req.GroupUpdateReqDTO;
import com.nageoffer.shortlink.common.dto.admin.resp.GroupGetRespDTO;

import java.util.List;

public interface GroupService extends IService<Group> {
    void saveGroup(GroupCreateReqDTO requestParam);

    void saveGroup(String name, String username);

    List<GroupGetRespDTO> getGroups();

    List<Group> getSimpleGroups();

    void updateGroup(GroupUpdateReqDTO requestParam);

    void deleteGroup(String gid);

    void sortGroup(List<GroupSortReqDTO> requestParam);
}
